//-----------------------------------------------------------------------
// <copyright file="PermissionBase.cs" company="FetCo">
//     Copyright (c) FetCo. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------
	
using System;
using System.Data;
using System.ComponentModel;
using System.Collections;

namespace ADESSA.Entities
{
	[Serializable]
	public class PermissionBase
	{
		
		#region Variable Declarations
		public static string _Table = "Permission";
		private int				permissionId = 0;
		private string				code = string.Empty;
		private string				permissionName = string.Empty;
		private string				description = string.Empty;
		private string				role = string.Empty;
		#endregion
		
		#region Constructors
		public PermissionBase() {}
		
		public PermissionBase (
			int permissionId,
			string code,
			string permissionName,
			string description,
			string role)
		
		{
			this.permissionId = permissionId;
			this.code = code;
			this.permissionName = permissionName;
			this.description = description;
			this.role = role;
		}
		#endregion
		
		#region Properties	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is int</value>
		public int PermissionId
		{
			get { return permissionId; }
			set { permissionId = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is nvarchar</value>
		public string Code
		{
			get { return code; }
			set { code = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is nvarchar</value>
		public string PermissionName
		{
			get { return permissionName; }
			set { permissionName = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is nvarchar</value>
		public string Description
		{
			get { return description; }
			set { description = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is nvarchar</value>
		public string Role
		{
			get { return role; }
			set { role = value; }
		}
	
		
		#endregion
	}//End Class
	
	public enum PermissionColumns
	{
		PermissionId,
		Code,
		PermissionName,
		Description,
		Role
	}//End enum
}